<?php
/**
 * 从缓存(redis)中加载未下载完毕的任务列表
 */
require '../../vendor/autoload.php';

use database\DnFile;
use utils\PathTool;

$uid = $_GET["uid"];
$cbk = $_GET["callback"];//jsonp

if ( strlen($uid)>0 )
{
	$df = new DnFile();
	$json = $df->all_uncmp($uid);	
	if( !empty($json) )
	{
		$json = PathTool::url_encode($json);
		echo "$cbk({\"value\":\"$json\"})";
		return;
	}
}

echo $cbk . "({\"value\":null})";
?>